package com.sinothk.gpserver.modules.biz.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.sinothk.gpserver.modules.comm.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 俱乐部成员相关
 * </p>
 *
 * @author Liang Y.t.
 * @since 2021-08-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("biz_group_member")
@ApiModel(value = "GroupMemberEntity对象", description = "俱乐部成员相关")
public class GroupMemberEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "群ID")
    private String groupId;

    @ApiModelProperty(value = "群名称")
    private String groupName;

    @ApiModelProperty(value = "成员ID")
    private String memberAccount;

    @ApiModelProperty(value = "成员积分")
    private Float memberCoins;

    @ApiModelProperty(value = "群内角色：0：成员，3：合伙人，5：管理员")
    private Integer groupRole;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

//    @ApiModelProperty(value = "逻辑删除：0未删除;1删除;")
//    @TableLogic
//    private Integer deleted;

    @ApiModelProperty(value = "邀请人ID")
    private String inviteBy;
}
